﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Managers;
using Managers.LiveControl.Server;
using Managers.Nova.Server;
using Providers.Nova.Modules;
using System.Diagnostics;
using Server.Forms;

namespace Wpf_Client
{
   public class SeverManager
    {


       public  void Start()
       {
            Server.Forms.FormMain SeverForm = new FormMain();
            SeverForm.Show();
           SeverForm.NovaManager.OnIntroducerRegistrationResponded += (s, e) =>
           { if (OnIntroducerRegistrationResponded != null) OnIntroducerRegistrationResponded(s, e); };
           SeverForm.NovaManager.OnNewPasswordGenerated += (s, e) => {
                                                                         if (OnNewPasswordGenerated != null)
                                                                             OnNewPasswordGenerated(s, e);
           };
       }
        public event EventHandler<PasswordGeneratedEventArgs> OnNewPasswordGenerated;
        public event EventHandler<IntroducerRegistrationResponsedEventArgs> OnIntroducerRegistrationResponded;

    }
}
